GLR example glrduck

UNFORTUNATELY, The IRIX 6.2 GLR library is not available at this time.
We hope to have inst images available with the
v6.2 DT releasing at the end of this calendar year.
Please stay tuned to the location:
Once we have the software onboard, we'll indicate its presence
and location on this page.
GLR - an OpenGL Render Server Facility. Please see the GLR
section in the OpenGL documents
tree for more information on GLR.
Glrduck
is a rehash of the GLR example program
glrduckpond.c++ using
ViewKit and Open Inventor. The main difference being
glrduck creates a sub-class of the SoXtRenderArea
called SoXtGLRRenderArea.
REQUIRED LIBS:
- OpenInventor 2.1 or 2.1.1
- ViewKit
- OpenGL
FILES:
Makefile: SGI compliant makefile.
main.C: main.
SoXtGLRRenderArea.C: SoXtRenderArea derived class source file.
SoXtGLRRenderArea.h: SoXtRenderArea derived class header file.
glrduck.C: VkApp derived class source file.
glrduck.h: VkApp derived class header file.
Glrduck: Xt resource file.
duck.iv: Inventor graphics file of duck.
HOW IT WORKS:
The SoXtGLRRenderArea class provides the connection to GLR. It handles the
GLR initialization and drawing. The initialization of GLR is done in the
class constructor. If a connection cannot be made then glrduck prints an
error message a uses local rendering hardware. The public drawing method
takes a flag to determine whether rendering should be local or GLR remote.
THINGS TO WATCH FOR:
This version glrduck tries to acquire an RGB canvas type. If this is changed
to something other than RGB then the image pointer array size must be changed.
(e.g. RGBA then new GLubyte[size[0] * size[1] * 4]; )
Before rendering to the remote hardware private render method "renderRemote()"
invalidates the Inventor cache.
See: (getGLRenderAction()->invalidateState();)
WHAT PLATFORMS AND OPERATING SYSTEMS ARE SUPPORTED?
You may use GLR with any SGI workstation running IRIX 5.3 or higher. While the
render server can run on any SGI workstation, including low-end machines, it's
preferable that it be run on a high-end machine (e.g. RealityEngine).
I have tested glrduck on an Indigo 2 running both IRIX 5.3 and Beta IRIX6.2,
using a RealityEngine running IRIX 5.3 as the GLR server.
IMPORTANT:
When the glrmanager is running on a
machine, the display is unusable for anything else.
OR, ...
Copyright © 1995, Silicon Graphics, Inc.